@font-face {
  font-family: 'Roman FangSong';
  src: url("../font/RomanFangSong.woff2");
}


body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scrollbar-width: none;
  font-family: "Roman FangSong","仿宋GB_18030","仿宋GB_2312","仿宋","宋体",sans-serif;
  font-size: 16pt;
  letter-spacing: 1px;
  line-height: 9.8mm;
  color: var(--font-color);
  background-color: var(--bg-color);
}

.a4-paper {
  box-sizing: border-box;
  position: relative;
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 0;
  width: 210mm;
  min-height: 297mm;
  background-color: #fff;
  box-shadow: 2px 2px 10px #a4a4a4;
  backdrop-filter: blur(5px);
}

.a4-paper-container {
  margin: 37mm 26mm 35mm 28mm;
  padding: 0;
  width: 156mm;
}


.header, .footer {
  width: 100%;
  margin: 0 auto;
}



.post-list {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
}

.post-item {
  width: 100%;
  padding-bottom: 24px;
  margin-bottom: 48px;
  border-bottom: 1px dashed var(--color-hr);
  transition: all ease-in-out .3s;
}

.post-item-title {
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 12px;
  color: var(--font-color);
}

.post-item-title:hover {
  /* color: var(--font-color); */
  text-decoration: underline;
  transition: all ease-in-out 0.5s;
}
.post-item-summary {
  word-break: break-all;
  margin-bottom: 12px;
}

.post-item-extra, .post-meta {
  font-size: 1rem;
  color: var(--post-meta-color);
  display: flex;
}

.post-item-extra>.date, .post-meta>.date {
  margin-right: 1em;
}

.post-item-extra>.tags, .post-meta>.tags {
  display: flex;
}

.read-more {
  padding: 0 4px;
  color: var(--font-color);
}

.read-more:before,
.read-more:after {
  display: inline-block;
  transition: transform ease-in-out 0.5s;
}
.read-more:before {
  content: "{ ";
}
.read-more:after {
  content: " }";
}
.read-more:hover:before {
  transform: translateX(-4px);
  transition: transform ease-in-out 0.25s;
}
.read-more:hover:after {
  transform: translateX(4px);
  transition: transform ease-in-out 0.25s;
}

.tags>.tag-item::before {
  content: "# ";
  color: var(--font-color-extra);
  margin-left: 0.5em;
}


.archives {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-between;
  align-content: normal;
}

.archive-item {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-content: center;
  padding: 16px 8px;
}

.archive-item:nth-child(odd) {
  background: var(--color-list-item-odd);
}

.archive-item:nth-child(even) {
  background: var(--color-list-item-even);
}

.archive-item span {
  /*width: 108px;*/
  margin-right: 20px;
  color: var(--font-color-secondary);
}

.archive-item>.title {
  flex: 1;
  text-decoration: none;
  transition: all ease-in-out 0.5s;
}

.archive-item>.title:hover {
  text-decoration: underline;
  transition: color ease-in-out 0.5s;
}

.archive-item>.tags {
  display: flex;
  font-size: 0.9em;
}

.paginator {
  font-size: 0.875rem;
  width: 100%;
  margin: 0 auto 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  color: var(--font-color-secondary);
}

.paginator * {
  display: block;
  padding: 8px 16px;
  border-bottom: 2px solid #eee
}

.paginator .page-number {
  text-align: center;
  box-sizing: content-box;
  width: 1em;
}

.paginator a {
  margin: 4px;
  color: var(--font-color-secondary);
  transition: all ease-in-out 0.5s;
}

.paginator a:hover {
  color: var(--font-color);
  border-bottom: 2px solid #000;
  transition: all ease-in-out 0.5s;
}

.paginator .current {
  color: var(--font-color);
  border-bottom: 2px solid var(--font-color);
  cursor: not-allowed;
}

@media screen and (max-width: 220mm) {
  body {
    font-size: 14pt;
  }

  .a4-paper {
    width: 90vw;
    margin-left: 20px;
    margin-right: 20px;
    min-height: 90vh;
  }
  .a4-paper-container {
    width: auto;
    margin: 45px 30px;
  }
}